import {
    Entity,
    PrimaryGeneratedColumn,
    Column,
    BeforeInsert
} from 'typeorm';
import * as bcrypt from 'bcryptjs'

@Entity('im_login_record') // 指定表名称为 'im_login_record'
export class ChatFriendShips {
    @PrimaryGeneratedColumn({ comment: 'id', })
    login_id: string;
    @Column({ comment: '用户id', })
    user_id: string;
    @Column({
        comment: '创建时间',
        name: 'create_time',
        type: 'timestamp',
        default: () => 'CURRENT_TIMESTAMP',
    })
    createTime: Date;
}



